package com.lwm.mapper;


import com.lwm.domain.PurchaseApproval;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 采购申请表(PurchaseApproval)表数据库访问层
 *
 * @author lzl
 * @since 2023-10-17 16:19:40
 */
public interface PurchaseApprovalMapper {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    @Select("select * from purchase_approval where id = #{id} and is_deleted = 0;")
    PurchaseApproval getById(Long id);


    /**
     * 获取页面
     *
     * @param purchaseApproval 采购批准
     */
    List<PurchaseApproval> getPage(PurchaseApproval purchaseApproval);

    /**
     * 修改
     *
     * @param purchaseApproval 采购批准
     */
    void update(PurchaseApproval purchaseApproval);
}

